import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login.vue'
import Home from '../components/Home.vue'
import UpLoad from "../components/student/UpLoad";
import Result from "@/components/student/Result";
import PublishTask from "@/components/teacher/PublishTask";
import ManageCourse from "@/components/admin/ManageCourse";
import ManageFile from "@/components/admin/ManageFile";
import Management from "@/components/teacher/Management";
import ManageUser from "@/components/admin/ManageUser";
import ManageClass from "@/components/admin/ManageClass";
import MarkFile from "@/components/teacher/MarkFile";
import Info from "@/components/Info";
import News from "@/components/student/News";

Vue.use(Router)

export default new Router({
    routes:[
        {
            path: '/',
            component: Login
        },
        {
            path: '/home',
            component: Home,
            children:[
                {
                    path:'info',
                    component:Info
                },
                {
                    path:'upload',
                    component:UpLoad
                },
                {
                    path:'result',
                    component:Result,
                },
                {
                    path: 'markFile',
                    component: MarkFile,
                },
                {
                    path: 'publishTask',
                    component: PublishTask,
                },
                {
                    path: 'management',
                    component: Management
                },
                {
                    path: 'class',
                    component: ManageClass
                },
                {
                    path: 'course',
                    component: ManageCourse,
                },
                {
                    path: 'file',
                    component: ManageFile
                },
                {
                    path: 'user',
                    component: ManageUser
                },
                {
                    path: 'news',
                    component: News
                }
            ]
        },
        {
            path:'/home/student/upload',
        }



    ]
})
